package com.yl.login.repo

import com.yl.common.base.BaseRepository
import com.yl.common.network.RespStateData
import com.yl.login.api.LoginApi
import com.yl.login.bean.LoginBean

/**
 * Created by stew on 8/5/22.
 */
class LoginRepo(private val api: LoginApi) : BaseRepository() {
    suspend fun login(username: String, password: String, data: RespStateData<LoginBean>) =
        dealResp(
            block = { api.login(username, password) }, data
        )
}